Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 refactor tags package to support other services #1848

Merged
merged 2 commits into from
Aug 11, 2020
Merged

🌱 refactor tags package to support other services #1848

merged 2 commits into from
Aug 11, 2020

Conversation

richardcase
Copy link
Member

What this PR does / why we need it:
The existing tags package applies tags to EC2 only. This is a small refactor to allow a 'apply' function to be passed in and this function contains resource/service specific functionality to applythe tags. The tags package still keeps the diff functionality. This will help with apply tags in the EKS control plane reconciler ( #1787 ).

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1843

The existing tags package applies tags to EC2 only. This is a small
refactor to allow a 'apply' function to be passed in and this
function contains resource/service specific functionality to apply
the tags. The tags package still keeps the diff functionality and
this can be used by new services such as EKS.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 30, 2020
pkg/cloud/tags/tags.go Outdated Show resolved Hide resolved
@richardcase richardcase changed the title ✨ refactor: tags package to support other services ✨ WIP refactor: tags package to support other services Jul 30, 2020
Changed the tags package to use a builder struct thats created
with opts. Moved the EC2 tag setting back into the package.
@richardcase richardcase changed the title ✨ WIP refactor: tags package to support other services refactor: tags package to support other services Aug 6, 2020
@rudoi
Copy link
Contributor

rudoi commented Aug 10, 2020

/lgtm

i'll leave final approve up to @vincepri? :D

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2020
@richardcase
Copy link
Member Author

i'll leave final approve up to @vincepri? :D

@vincepri - does this look ok to you?

@randomvariable
Copy link
Member

@vincepri is off this week, I'll take a look.

@randomvariable
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: randomvariable

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2020
@k8s-ci-robot k8s-ci-robot merged commit 79729f0 into kubernetes-sigs:master Aug 11, 2020
@randomvariable randomvariable changed the title refactor: tags package to support other services 🌱 refactor tags package to support other services Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor tags package (specifically Apply)
5 participants